<?php
if (!defined('ABSPATH')) {
	define('ABSPATH', dirname(dirname(__FILE__)) . '/');
}

require_once ABSPATH . 'dr-config.php';
require_once ABSPATH . DRINC . '/dr-base.php';
require_once ABSPATH . DRINC . '/dr-functions.php';


$marked_user_id = dr_post('marked_user_id');
$mark_type = dr_post('mark_type');

if (!empty($marked_user_id) && !empty($mark_type)) {

	$user_id = dr_is_login_on();

	echo dr_mark_users($user_id, $marked_user_id, $mark_type);
} else {
	echo 0;
}
